package com.Singleton;

public class Singleton2 {
    private static Singleton2 sl=null;
    public  static synchronized   Singleton2 getInstance(){
        if(null==sl){
            sl=new Singleton2();
        }
        return  sl;
    }
}
